#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/jiffies.h>

void msleep(unsigned int msecs)
{
    unsigned long timeout = msecs_to_jiffies(msecs);

    while (timeout)
        timeout = schedule_timeout_uninterruptible(timeout);
}
